﻿using Basic.FormCollect;
using Basic.FormRemoteModel.FormDataSourceItem;
using Basic.FormRemoteModel.FormDataSourceItem.Model;
using WeDonekRpc.Client.Interface;

namespace Basic.FormService.RpcEvent
{
    internal class DataSourceItemEvent : IRpcApiService
    {
        private readonly IDataSourceItemCollect _Service;

        public DataSourceItemEvent ( IDataSourceItemCollect service )
        {
            this._Service = service;
        }

        public SourceItem[] GetDataSourceItem ( GetDataSourceItem obj )
        {
            return this._Service.GetItems(obj.SourceKey);
        }
    }
}
